<template>
	<view class="content">
		<wenjuan-manager :md="testWenjuan" @change="onChange" @submit="onSubmit"></wenjuan-manager>
		<!-- <uni-title type="h1" title="问卷描述事例语句" color="#027fff"></uni-title> -->
		<!-- <uni-easyinput type="textarea" autoHeight v-model="testWenjuan" :disabled="true"></uni-easyinput> -->
	</view>
</template> 

<script>
	import manager from '../../components/gwh-wenjuan2/gwh-wenjuan2-manager.vue'
	export default {
		components:{
			'wenjuan-manager':manager
		},
		data() {
			return {
				testWenjuan:"# 闸站1 **  \n..正常..异常 \n\n"+
							"# 闸站2 ** \n..正常..异常..?? !2 \n\n"+
							"# 闸站3 ** \n..正常..异常..?? !2 \n\n"+
							"# 闸站4 ** \n..正常..异常..?? !2 \n\n"+
							"# 闸站5 ** \n..正常..异常..?? !2 \n\n"+
							"# 闸站6 ** \n..正常..异常..?? !2 \n\n"+
							"# 闸站7 ** \n..正常..异常..?? !2 \n\n"+
							"# 闸站8 ** \n..正常..异常..?? !2 \n\n"+
							"# 闸站9 ** \n..正常..异常..?? !2 \n\n"+
							"# 闸站10 ** \n..正常..异常..?? !2 \n\n"}
		},
		methods: {
			onChange(e){
				console.log(e)
			},
			onSubmit(e){
				console.log(e)
				uni.showModal({
					showCancel:false,
					confirmText:'ok',
					title:'提示',
					content:'提交成功！'
				})
			}
		}
	}
</script>

<style>
	.content{
		display: flex;
		flex-direction: column;
		width: 100%;
		padding: 5%;
	}
</style>
